package org.jeecg.modules.water.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.water.entity.LwgyJointWater;
import org.jeecg.modules.water.entity.LwgyJointWaterDaily;
import org.jeecg.modules.water.mapper.LwgyJointWaterDailyMapper;
import org.jeecg.modules.water.service.ILwgyJointWaterDailyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 日用水量
 * @Author: jeecg-boot
 * @Date:   2024-03-19
 * @Version: V1.0
 */
@Service
public class LwgyJointWaterDailyServiceImpl extends ServiceImpl<LwgyJointWaterDailyMapper, LwgyJointWaterDaily> implements ILwgyJointWaterDailyService {
    @Autowired
    private LwgyJointWaterDailyMapper lwgyJointWaterDailyMapper;

    @Override
    public List<LwgyJointWaterDaily> selectByMainId(String mainId) {
        return lwgyJointWaterDailyMapper.selectByMainId(mainId);
    }

    @Override
    public IPage<LwgyJointWaterDaily> queryJointWaterDailyList(Page<LwgyJointWaterDaily> page, QueryWrapper<LwgyJointWaterDaily> queryWrapper) {
        return page.setRecords(lwgyJointWaterDailyMapper.queryJointWaterDailyList(page,queryWrapper));
    }
}
